
#include <iostream>

using namespace std;

int __main( int argc, char* argv[] ) {

    size_t size = 10;
    size_t size2 = 20;
    int* arr = new int[size];
    int* arr2 = new int[size2];
    memset( arr, 0, sizeof( int )*size );
    memset( arr2, 0, sizeof( int )*size2 );
    for ( size_t i = 0; i < size; i++ ) {
        arr[i] = i;
    }

    for ( size_t i = 0; i < size; i++ ) {
        cout << arr[i] << ",";
    }
    cout << endl;


    memcpy( arr2, arr, sizeof(int)*size );
    for ( size_t i = 0; i < size2; i++ ) {
        cout << arr2[i] << ",";
    }
    cout << endl;

    cin.get();
    return 0;
}